package org.exez.modules.visitor.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value="AccessRecordVo对象", description="人员信息")
public class AccessRecordVo {
    @ApiModelProperty(value = "姓名")
    @NotBlank(message = "姓名不能为空")
    @Length( max=20 ,message = "姓名只能为2到20个字符")
    private  String name;

    @ApiModelProperty(value = "出入时间")
    @NotBlank(message = "出入时间不能为空")
    private  String accessTime;

    @ApiModelProperty(value = "是否异常")
    @NotNull(message = "是否异常不能为空")
    private  Integer isNormal;

    @ApiModelProperty(value = "手机号码 加密")
    @NotBlank(message = "手机号码不能为空")
    @Length(min= 10, max=50 ,message = "手机号码10到50个字符")
    private  String mobile;

    @ApiModelProperty(value = "身份证号码 加密")
    @NotBlank(message = "身份证号码不能为空")
    @Length(min= 10, max=80 ,message = "身份证号码10到80个字符")
    private  String certificatecardNo;

    @ApiModelProperty(value = "证件类型  1身份证、2护照")
    @NotNull(message = "证件类型  身份证、护照不能为空")
    private  Integer cardType;

    @ApiModelProperty(value = "人员分类  1访客、2白名单、3警员")
    @NotNull(message = "人员分类不能为空")
    private Integer personType;

    @ApiModelProperty(value = "进出方式   1车辆 、 人员")
    @NotNull(message = "进出方式不能为空")
    private  Integer accessType;

    @ApiModelProperty(value = "车牌号")
    private  String carNo;

    @ApiModelProperty(value = "绿码")
    @NotNull(message = "性别不能为空")
    private  Integer codeColour;

    @ApiModelProperty(value = "出入人员图片")
    @Length(min= 100 ,message = "出入人员图片base64需要大于100个字符")
    private  String accessPhoto;

    @ApiModelProperty(value = "性别  男 女")
    @NotNull(message = "性别不能为空")
    private  Integer sex;

    @ApiModelProperty(value = " 0－进  1－出")
    private  Integer accessMold;


    @ApiModelProperty(value = "单位id")
    @NotBlank(message = "单位id不能为空")
    @Length(min= 1, max=20 ,message = "单位id1到20个字符")
    private  String institutionCode;

    @ApiModelProperty(value = "单位名称")
    @NotBlank(message = "单位名称不能为空")
    @Length(min= 1, max=30 ,message = "单位名称1到30个字符")
    private  String institutionName;

    @ApiModelProperty(value = "车辆图片")
    private  String carPhoto;

}
